<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>lxy柱状图数据</title>
    <script src="js/echarts.js"></script>
    <style>
        /*将容器设置背景颜色：引入图表做衬托*/
        #container{
        width:1200px;
        height:800px;
        background: rgb(241, 239, 196);
        margin:auto;
        }
    </style>
</head>
<body>
<div id="container"></div>
<script>
var myInit=echarts.init(document.querySelector("#container"))

option = {
  title: {
    text: '教学支持数据'
      ,textStyle:{
              color: "#04393c"
              ,fontSize: "30"  //
              ,fontWeight:'bold' //文字字体的粗细
          }
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'value',
    boundaryGap: [0, 0.01]
  },
  yAxis: {
    type: 'category',
    data: ['张建', '梁瑾', '高颜领', '王晓明', '康凯', '戚贤', '王俊星','贾槐坚','申亚辉','薄浩丹']
      ,scale:true
  },
  series: [
    {
      name: '老师九月课程数据',
      type: 'bar',
      data: [106,132,106,56,102,190,117,130,166.5,147],
        markPoint: {
        data: [
                {
                    type:"min"
                    ,name: "最小值"
                }
                ,{
                    type:"max"
                    ,name:"最大值"
                }
                 ]
      },
        markLine: {
        data: [{ name:"平均值"
                    ,type:"average"}]
      }
    },
    {
      name: '老师十月课程数据',
      type: 'bar',
      data: [103, 76, 112, 60, 126, 224, 60, 198, 114, 64],
        markPoint: {
        data: [
                {
                    type:"min"
                    ,name: "最小值"

                }
                ,{ name: 'Min', value: 60, xAxis: 6, yAxis: 65 }

                ,{
                    type:"max"
                    ,name:"最大值"
                }
                 ]
      },
      markLine: {
        data: [{ type: 'average', name: 'Avg' }]
      }
    }
  ]
};
        myInit.setOption(option)
</script>
</body>
</html>